import request from '@/utils/request'

export const getStudyList = (data) => {
  return request({
    url: '/study',
    method: 'get',
    data
  })
}

export const studyDetail = (id) => {
  return request({
    url: `/study/detail/${id}`,
    method: 'get'
  })
}

export const addStudyLog = (data) => {
  return request({
    url: '/study/log',
    method: 'post',
    data
  })
}

export const studyLog = (data) => {
  return request({
    url: '/study/log',
    method: 'get',
    data
  })
}